<div class="panel panel-default" ng-controller="UserListCtrl">
	<div class="panel-heading">
		系统管理 / 工作人员管理
	</div>
	<toaster-container toaster-options="{'position-class': 'toast-top-right', 'close-button':true}"></toaster-container>
	<div class="row wrapper m-n">
		<form class="bs-example form-horizontal ng-pristine ng-valid">
			<div class="form-group col-md-4">
				<div class="col-md-11">
					<input type="text" ng-model="queryMap.name" class="form-control" placeholder="姓名">
				</div>
			</div>
			<div class="form-group col-md-4">
				<div class="col-md-11">
					<button type="button" class="btn btn-info" ng-click="query()">查询</button>
				</div>
			</div>
		</form>
	</div>
	<div class="table-responsive">
		<table class="table table-striped b-t b-light">
			<thead>
				<tr>
					<th style="width:10px;">
						<label class="i-checks m-b-none" has-authority="SYSTEM_STAFF_DEL">
				<input type="checkbox"   ng-model="ckAll"  ng-click="checkAll(ckAll,dataList)" ><i></i>
			  </label>
					</th>
					<th style="width:100px;">用户名</th>
					<th style="width:50px;">姓名</th>
					<th style="width:50px;">手机号</th>
					<th style="width:50px;">部门</th>
					<th style="width:50px;">职位</th>
					<th style="width:50px;">邮箱</th>
					<th style="width:50px;">状态</th>
					<th style="width:80px;">
						<center>
							<a href tooltip="添加" has-authority="SYSTEM_STAFF_ADD"><i class="fa fa-plus fa-fw m-r-xs" ng-click="write('lg',null,'insert')"></i></a>
							<a href tooltip="批量删除" has-authority="SYSTEM_STAFF_DEL"><i class="fa fa-times fa-fw" ng-click="del('sm',user,'deleteAll')" ></i></a>
						</center>
					</th>
				</tr>
			</thead>
			<tbody>
				<tr ng-repeat="user in dataList">
					<td>
						<label class="i-checks m-b-none" has-authority="SYSTEM_STAFF_DEL">
				<input id="{{user.ic}}" name="checks" type="checkbox" ng-checked="ckAll"  ng-model="checks"  ng-click="check(user.id,checks)"  ><i></i>
			  </label>
					</td>
					<td>{{user.username}}</td>
					<td>{{user.name}}</td>
					<td>{{user.phone}}</td>
					<td>{{user.department}}</td>
					<td>{{user.position}}</td>
					<td>{{user.email}}</td>
					<td>{{user.status==0?'未激活':'已激活'}}</td>
					<td>
						<center>
							<a href tooltip="分配角色" has-authority="SYSTEM_STAFF_ROLE" style="margin-right: 12px"><i class="fa fa-edit" ng-click="fp('lg',user,'fp')" ></i></a>
							<a href tooltip="修改" has-authority="SYSTEM_STAFF_UPDATE"><i class="fa fa-pencil fa-fw m-r-xs" ng-click="write('lg',user,'update')" ></i></a>
							<a href tooltip="删除" has-authority="SYSTEM_STAFF_DEL"><i class="fa fa-times fa-fw" ng-click="del('sm',user,'delete')" ></i></a>
						</center>
					</td>
				</tr>
				<tr ng-show="dataList==''">
					<td colspan="9" style="text-align: center;">暂无工作人员信息</td>
				</tr>
			</tbody>
		</table>
	</div>
	<page-footer/>
</div>